<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>我的佣金</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />

<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.1.min.js"></script>

 <link href="/ge/css/style.css" type="text/css" rel="stylesheet" />

<link href="__PUBLIC__/Weixin/css/index.css?v={:rand(0,99)}" rel="stylesheet" type="text/css">

<link href="__PUBLIC__/Weixin/css/head.css?v={:rand(0,99)}" rel="stylesheet" type="text/css">

<style></style>

<script>

$(document).ready(function () { 

	$(function(){

		  $.get("{:U('ajaxyongjin')}",{},function(res){

			 $(".yongjin2").append(res.html);

		  },'json');

	});

	

	$(window).scroll(function(){

	   var scrollTop = $(this).scrollTop();

	   var scrollHeight = $(document).height();

	   var windowHeight = $(this).height();

	   if(scrollTop + windowHeight >= scrollHeight){

		  var page = parseInt($("input[name='page']").val());

		  $.get("{:U('ajaxyongjin')}",{page:page},function(res){

			 $(".yongjin2").append(res.html);

			 $("input[name='page']").val(page+1);

		  },'json');

	   }

   });

   

   $(".yongjin2").delegate(".xiang", "click", function(){

	   var uls = $(this).parent().parent().find('ul');

	   $('.yongjin2 ul').hide();

	   if(uls.is(':visible')){

		   uls.hide();

	   } else {

		   uls.show();

	   }	     

   }); 
  
  $('.yongjinall').click(function(){
        $('#dengdai').show();
        $.post("{:U('ajaxtixian')}",null,function(res){
           $('#dengdai').hide();
          //alert(JSON.stringify(res)); 
          if(res.code == 2){
                $('.msgbox .txt').text('提现成功');
                $('.msgbox').show();
           }else if(res.code == 4){
                $('.msgbox .txt').text('佣金满1元可提现');
                $('.msgbox').show();
           }else if(res.code == 6){
                $('.msgbox .txt').text('至少拆一次红包，才能提现');
                $('.msgbox').show();
           }else{
              $('.msgbox .txt').text('佣金满1元可提现');
              $('.msgbox').show();
           }
        },'json');
    });

   

});

</script>

</head>

<body>

</head>
  <body class="main_background">
        <div class="box padding_bottom02">
            <div class="top_02">
                 <img src="/bao/picture/top_bg.png" />
            </div>
            <div class="guang">
                <img id="img" src="/bao/picture/guang.png" />
            </div>
            <script type="text/javascript">
                $(document).ready(function() {
                    var angle = 0;
                    setInterval(function() {
                        angle += 3;
                        $("#img").rotate(angle);
                    },
                    100);
                });
            </script>
            <div class="center">
                <div class="c_b background_white b_r no_pt cb_p">
                    <div style="margin-bottom: 10px;margin-top: 25px;">
                        <div style="width: 100%;height:0px;line-height:20px;padding-top: 5px;padding-bottom: 5px;">
                            <div style="margin-left: 0;margin-right: 5px;">
                                <ul id="marquee" class="marquee" style="font-size: 15px;">
                                    <li>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
<body>

<input type="hidden" value="1" name="chaiact">
<input type="hidden" value="2" name="page">
<!--1可拆2锁定--> 








 

<?php $txsetting = M('sys_config')->find(); ?>
<?php if($txsetting['cyongjinfa']==2){?>
<div class="yongjinall title font_red t_p" style="background: yellow;width:80%;margin:0 auto;height:0.5rem;line-height:0.3rem;color:#fff;border-radius: 8px;">全部提现</div>
<?php }?>
<div class="title no_margin font_red t_p" style="display:none">佣金为人工发放<p>页面状态会显示为未结算</div>

<div class="yongjin3">今日剩余结算次数（含拆红包和佣金结算）：{$cishu}次</div>

<div class="yongjin2"></div>



<include file="Index/meno" />

</body>

</html>